package com.aaa.hospital.ManagementEnd.service;

import com.aaa.hospital.ManagementEnd.pojo.Docuser;
import com.aaa.hospital.ManagementEnd.pojo.Medicine;
import com.aaa.hospital.ManagementEnd.util.MedicineVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface Medicineser {
    List<Medicine> queryAll();
    int update(Medicine medicine);
    List<Docuser> select_ypId_ypName(Integer ypid,String ypname);
    int delete(int ypid);
    int insert(Medicine medicine);
    int updateKC(@Param("ypid")Integer ypid,@Param("jnum") Integer jnum);



    List<Medicine> queryById(Integer yfid);
    boolean upnum(Integer ypid,Integer ypnum);

    MedicineVo selectById(Integer ypid);


}
